# CloudCompare example for standard plugins

# REPLACE ALL 'ExamplePlugin' OCCURENCES BY YOUR PLUGIN NAME
# AND ADAPT THE CODE BELOW TO YOUR OWN NEEDS!

# Add an option to CMake to control whether we build this plugin or not
option( PLUGIN_STEPLINE "Install stepline plugin" OFF )

if ( PLUGIN_STEPLINE )
	project( stepline )
	
	set(CMAKE_AUTOUIC ON)
	set(CMAKE_AUTOMOC ON)
	set(CMAKE_AUTORCC ON) # 暂时不用
	 
	AddPlugin( NAME ${PROJECT_NAME} )
		
	add_subdirectory( include )
	add_subdirectory( src )
	add_subdirectory( ui )
	# add_subdirectory( GeneratedFiles )
	
	# 寻找PCL库
	find_package( PCL REQUIRED )
	
	# 添加PCL相关库
	include_directories( ${PCL_INCLUDE_DIRS} )
	link_directories(${PCL_LIBRARY_DIRS})
	add_definitions(${PCL_DEFINITIONS})
	
	#添加qcc头文件
	include_directories( "${CMAKE_CURRENT_LIST_DIR}/../../../qCC" )
	
	# 链接PCL库
	target_link_libraries( 
		${PROJECT_NAME} 
		${PCL_LIBRARIES} 
		${CMAKE_THREAD_LIBS_INIT}
	)
	# set dependencies to necessary libraries
	# target_link_libraries( ${PROJECT_NAME} LIB1 )

endif()
